import os

dataDir		= '/scratch/naresh/git/naresh/LifeParser/Data/Enron_DataStore/'
hadoopDir	= 'LifeParser/Data/Enron_DataStore/'

dirList		= os.listdir(dataDir)
fp			= open('copyToHadoop.sh', 'w')

for dir in dirList:
	fp.write('hadoop dfs -copyFromLocal ' + os.path.join(dataDir, dir) + '/* ' + hadoopDir + dir + '/\n')

fp.close()
